package com.feihong.activity.service;


import com.feihong.activity.enums.SensorEnum;
import com.feihong.activity.vo.PushVo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * 服务逻辑层接口
 * @author Filter
 */
public interface PushCityService{
    /**
     * 区向市同步接口
     * @param pushVO
     * @throws IllegalAccessException
     */
    void pushInfoByArea(PushVo pushVO) throws IllegalAccessException;

    /**
     *
     * @param pathName
     * @param batchName
     * @throws IllegalAccessException
     * @throws IOException
     */
    void pushAllByArea(String pathName,String batchName) throws IllegalAccessException, IOException;

    /**
     * 文件上传接口
     * @param file 上传文件
     * @return
     * @throws IOException
     */
    String upload(MultipartFile file) throws IOException;

    /**
     * 解析文件
     * @param pathName 文件路径
     * @param sensorEnum 数据操作
     * @return
     * @throws Exception
     */
    String importFileByPath(String pathName, SensorEnum sensorEnum) throws Exception;

    void importMappingByPath(String pathName) throws IOException;

    /**
     *
     * @param equipmentPathName
     * @param logPathName
     */
    void pushBaseInfoByFile(String equipmentPathName,String logPathName) throws Exception;



}
